this should be logic.get_action here