WIP: rewrite installer