moving processing to /lib