migrated bwi_tools to bwi_common