small changes in init and fork