add index, add custom_user to publish, add undefined response.