updated editor to work with new source layout