attempt 1 at fixing weird relaunching issue