main script (additional returns)