improving MARINa scripts