add init functions and some arithmetic features