small routing bugs fixed, and base security class enhanced