fixes #2 by rewriting script to be more explicit