first (not yet ready) main code