Modified podsec,fixed some bugs