properly wrap in promise methods core bootstrap modules