split in CMD and in PHP version

makes things more clear