beginning of actual contents

minor optimizations tweaks