added a direct from file generic controller