code cleanup
wip: photo uploads