Improves custom route management

Custom routes work in /m mode
Improves security for user variable inputs