implemented path expansion
closes #6