Fix scripts

closes #60