fixed bugs in capture and made git update also update lastcommit date