implemented main services