REFACTOR: made plot scripts more practical