add factory bean