made this work with any version of mariadb