issue with Static function being called also fix error when relative path can't be found