adding sync async mode to console