allow for one marked PPMIN for input
this is based on initial work by Sid, reset here for easier merging