added basic complex config support; still pretty simple approach; not ideal