adding feature toggle factory support