added ls and pwd commands to on success event