move serial lib to src