simplified core.bind() a bit