very first commit of mode.py