cleaned up some files and fixed perms