added pymacs stuff