modified integration script