initial commit of code (OLD, un-used code)