cleanup for building module