moved processor to lib