added promises to constant retrieval