General lib script