added default args, tested as python lib