added --build-type option