add build and output directories part 2