re-enabled main code