add a ( not yet working ) guard for a rest service