add check for valid input to runner