using common mkspec functions