adding async detection and building async docs