change permissions, fix whitespaces and search