added launch instance, refactor