better check of promises