added minimal grid size check in command line