new preview handling with python server