re-arranged the code to be outside of the connect.js implementation for easier hooking in to existing connect implementations and started working on the filters