updated script with camera and post