prepare for selftest