use USER_DIR instead of deprecated UserDir