implement poppy build (have many bugs)