semi-working state, still has the refresh bug