add support for loader