fixed setup so it can be called from another directory