fix formatting
improve handling of placeholder annotations, preserve seed category of ph swap