use path resolve