proper path resolving