the debugged and tested wrapper
modify the wrapper so that things works for blspost files