accept directory in place of component name