fix parsing of integer times
add remote lead api support