extra query added and error thrown if curl not enabled check