to make it work in parallel
Revert "Revert "incorporating the changes in btas""

This reverts commit 5aa3bf6e132a40baeffaef0f5f1893dca66f6fbc.