added throws IOException declartion for CustomSerializers