handle multiple logtypes in a file