add loglinsim fortify function, restructure based on long/wide archetypes