added try catch block to get rid of those annoying errors...should be fine...