defaulting to logging error when no end is supplied
better default for end