added some more functionality and made some light testing for launch function