devcode backup

dev dev dev. control flags and subloops and such