add logMessage for overriding