add autoalignment method to netapi