split into two different scripts