reject invalid COPY/ADD files
tidied, and django library added