bug fix for factory generator
now testing for factory generator service
using attribute for modified flag in php file