added logdate script