begin setup
mostly implemented samples, still some todo