prepare before build