updated to take all actions via the command line