move processing code to package root
serialization by pickling