split commands and added guard for version install