modify script for use open source libril