base code for brain laid down. need to debug the in key options.