cleanup copied from base custom partial