added bind function if not exists
fixed tests