incompatibility fix with old basename