used ~ for resolving home directory instead of absolute path