sync with EMBERS/scratch