removed promise idea, renamed functions for legacy support