troubleshooting failure
refactored a bit, builds now work; date_to_string was broken?