bugfix save() parameter index logic

needs to be reworked!!!