checks path might as well be fetched from global