[IMP] code cleaning + removing allow_date
[IMP] remove close period stuff