improved controller system (not working on access denied and resource
not found controllers - aborts connection)