fixed bug in search directory and added ctp file