#32 fix pam flushes