configure factory