perm fixes, output cleanup, final testing