change to trait instead of inject resthelper