build menu works again

with refactoring. also added some new error/warning messages.