all porting for child process and policy hook; default policy not right, fork policy to be finished