added new function for integrated application
refactoring scripts