debugging relay issue