cleanup; fix bug where layers wouldnt refresh on reset