added changes to make file uploads work