handle the path