small fixes; successfully tested file upload