make the resources more testables