use bugdirtype consequently