add main application script