update laywork class autoload function