coding cms directory and resource