fix some bugs
return 503 if application is not started