a little error handling
logging
adding date