smarter execution flow