fixes for assignment permissions & file uploading