fix autoloads (only support functions)