inherit connection from resource