my own fixes and changes for ads server