move proc_t from .c to .h