added server and extension print

there is a bug with casting Int32 to Byte!!!
fix it