some basic tools from dlde lab