initial import with very basic stateful support