fixed some  minor issues in gramars and added a timeOut