bin/pandata refactoring