fixed function signature issue of CLI commands