put keys.js functionality back in for local use