added handling of singatures