finish major part of ajax