renamed util.py to fp.py and added more functions