executed script for file restructuring