took out forking to its own file