spilt the init env from the create restful