added possibility to add simple logic to action, allowing for async work in actions