rewrite run_text; improve contributing/license calculation
fix import handling