remove unused files, fix user permissions persistence