put require in try/catch