remove promise module, add config, implements loader,