handle promises and data in package environments