more layout, started writing engine