fixed commandline pre parse check and added param check regex