replace console.log & use async for some processes