buh bye hell, made logMessage() with more parameters instead