[IMP] membership:membership system is based on start and end date. It should be based on duration
[IMP]
[IMP] convert to new api