Fixed sript registration
Adaptions to fixed registration
#8 - fixed illegal access issue due to missing top level call scope