Init perm rewrite

fixes #1321