properly declare and collect the exported resources
added $fqdn to guarantee global uniqueness
Merge pull request #15 from deadpoint/master

properly declare and collect the exported resources