added ip log for invalid job ids and little clean up