preliminary getwork, pulled from PTS

using PTS commits to track changes