more detailed error message
better error msg, and index page use API now, with simple style