post receive for work request before sending work, free reqeusts at end
fix memory leaks