p converted to use click for commands