change function visibility and add build script