move to resource adaptor