add test for duplicate, inlined field
add function to adapt properties on load
major overhaul