replace old astlib package