common setup for ts