simplified m_action (imported from master)