add some debugging, return msg in inFilter