corrected config parsing in forward.py