restructuring the code; tibco::app::package checks current version and installs a new app