fixed link recognition (issue #3)
array notation
additional exception handling