changed the way fork arguments are handled, needed for later