improve log_caller and specs