made try/catch a bit less ugly