improve accept type handling
remove console log
improve path pattern for more than one sub folder