clean up around forking, changed to accept entire line of input