working version of forking server