fixes secrets reading on server