fixed bug caused by spaces in arguments