scaffold public api pieces