use ~ and check directory