fixing ctrl-p lookups