resolve paths (closes #2)