new logic when add resource

add mysetting default reading functions