first commit of miscellaneous code