some bigfixes and acd build script