init and settings