adds helper for promises