multiple fixes.
added build api.