[^] moved main script to the top