read problem from file if exists, now works better