convert to multiple target

Converted to targeting multiple platforms using open cli tools.

Builds on top of the other PR which fixes several issues.