implement gen-key, havent tested anything yet
break time