add support for pre-built layer