add service controller
add adapter for flex