devcode backup

still doesn't work yo, just replacing some redundant code & fixing
obvious bugs