added fctory to console