Better debug output
Make .secrets optional for easier testing