[minor] use constructor style for scaffold