added prependTo + appendTo-bugfix