moved code to action, updated command syntax