shorten switch statement by auto-handling default case
handle security code better