script for extracting includes