preliminary version running on PC simulator only