async: cleaned up
actionless: tried to remove all the unnecessary globals