replaced by serial

refactoring on serial file