moving core file to src dir