some refectoring of project menu
learned about detect method and used it in a couple of places