precompile regex
Pull inbound/outbound commands into separate files