loading indicator, some error handling