added init by resource name