does anyone come up with a good solution how to prioritize some functions before running code after it?