take grantPeriod as command line argument