change upload to put request
utilize im stream
add cron job
code cleanup