changes to the build script and added method to configure preferences for prob2api