adding config stuff and fixing date object