upload working

added console for debugging purposes