updates to foundation, logout