put challengehandler.java funcs in try catch