improved datetime imports