initial version with all starting files written locally, very incomplete