duration fix
handle if end is on the next day
fix for length warnings
new entities