hacked perspective transformation; TODO: remove those test code