end of day fixes