basic loop setup
trivial logic
platform api
a few hacks to make minimalist run