clean up, mainly rpc file