added basic support for model autodiscovery