fixed a bug in set_variable and i think bind is working now.