updated to accept new log types