adds public method to get script arguments