updated constructor to be more relaxed with method parameter
added depage-session as dependency