more sfapp fixes