small code adaption for split script