exception handling server. still problematic