fixed options page and improved build script