handling multiple models for engine queries