remove bubblewrap dependency by including some of their methods