Added  some code for finding for the core file
added the updated file