functional bonie script