added autowiring with method hints