try/catch replaced with xpcall