fixed an error where BLDSPEC was going out of scope and added soem default values