fix issue with commands and secret key not working with certin configurations