figure out target machine

also for future unification with baremetal