percona fixes + minor fixes