local setup and testing