deep functions should be private, little fixes