devcode backup

refactored away some bad cargo-cult habits