install callbacks