add phone lib interface and test