remorselessly ripped from work code