perm handling, source writing