fix slots & shadow: find functions base on slots