wrapping parse in try/catch