proj: many small fixes