refine seed handling
remove unused constants