added subscribe channel stub
added a publish channel stub
guard on subscribe
rearranged the clauses so that the guard is positive