check server status before building