use setup function for common needs