using line function of serial rmi