now uses bean created in services.