made services and controllers minsafe