some rework of the runtime and rpc management
protect from NPE