version with keys stored in bin