require mechanism: allow hubs without scheme; add support for requireing api files