add troubleshooting and fix rest-api