gf: get_engine now uses config and env