all specs now passing (although ajax call is certainkly now broken)