fixed inNames/outNames generation and init process