now ajax is more or less fixed