run in pre-start