no write to console when promise