added modified strstr and MPengine