extended rpc, bug-fixed parser and added types