server certificates handling added