added a helper function to resolv the path - for #198