removed shell cut command dependency

now a standalone script!