auto prepend code