minor issues in secret.js