adding work authority code. all unit tests pass