fixed registry errors

and fetching more values out of the AD