changed config resource to directory