fixed bug in command parsing when using kwargs