issue #249 add warning message on incorrect input