uploading a subset of old code in a hopefully more organized manner