resources() get config if self=true