alter methods calls to use promises