some minor binding tweaks to make it more flexible