fixes for secrets