refactor pose actions; some code cleanup