changed to use secrets file