added key options
fixing errors