date now accepted as a long
Slightly improved logging