devcode backup

continuing to refactor things