comment unsupported operations in __main__ block
add support for https and file