packages the commands and split them one by file