first version of attribute calculator and spatial linking