materialization done, needs to be tested, commented and logged
materialization working