make sure dkey is bin