properly handle incoming actions