moved in startup method