fixed getname issue on refineabl elements.
improved error message, when defining identifier for connection is
missing.