some shell code for reference