api re-org
added non-gui sample. reorg