AutoCreator: structure code

work in progress