sample code from requirebin