register_resource now also recognizes the connectedTo keyword