script for adding core files