added createActionMap functionality