path resolving not working