change server addr to localhost, fix command parser