finish main part of processes.c module in alp/app