improved createAction() algorithm
working on removing actions...