just finished merging

* added some lines of code into projectspattern so then there is only one instance of projectpattern activity going on at a time.