fix key check, enumeration error and update API_PATH