added auto path discovery