authorisation work
adding rest of the changes, need to remove this dlls
hopefully ignore file in use now.. thanks to SO