added resource server clients to APIS and fixed some scripts