fix configuration and callback