fix remove uppercase commands
fix parsing newlines