move get_line() functionality inside parse_line and some curl timeouts