Add sdk 4.13.0 and rewrite script using promises