many fixes for activeresource link