made a fix to relayer (should be using request type rather than # to determine direction)