fixed namespace problem with datetime