eliminated warnings(by casting....)
xml dematerializer roughly implemented