before init