updating to better support angular with ctrl-p