fixed build rules