fixed startup and hard-repl