more instances changed to dirname(__FILE__)