created lookup for script env variables and functions
richer error infos